package com.java0106;

public class Test01 {
    public static void main(String[] args) {
        //Math 类练习
        double max = Math.max(0.2, 2);
        System.out.println(max);

        double pi = Math.PI;
        System.out.println(pi);

        double e = Math.E;
        System.out.println(e);

        int min = Math.min(3, 4);
        System.out.println(min);


        //数学类中的随机数
        int s=(int)(Math.random()*100);
        System.out.println(s);

        int a = -1;
        System.out.println(Math.abs(a));//abs()取绝对值

        double m = 232.232;
        System.out.println(Math.round(m));//Math中四舍五入;


    }
}
